// 解决跨域模块
const cors = require('cors')
const express = require('express')
const userRouter = require('./user')
const productRouter = require('./product.js')
const shoppingRouter = require('./shopping.js')
const orderRouter = require('./order.js')
const app = express()
app.listen(3000)

// 注册路由器模块
app.use('./user',userRouter)
app.use('/product',productRouter)
app.use('/shopping',shoppingRouter)
app.use('./order',orderRouter)


